/**
 * FileName: TestFilter
 * Author:   xing.yang@vcg.com
 * Date:     2020/2/27 10:26
 * Description: 过滤器
 */
package com.vcg.vdam.aop;

import javax.servlet.*;
import java.io.IOException;

public class TestFilter implements Filter {


    @Override
    public void init(FilterConfig filterConfig) throws ServletException {

    }

    @Override
    public void doFilter(ServletRequest servletRequest, ServletResponse servletResponse, FilterChain filterChain) throws IOException, ServletException {

        System.out.println("欢迎来到filter");
        filterChain.doFilter(servletRequest,servletResponse);
    }

    @Override
    public void destroy() {

    }
}
